import DefaultTheme from 'vitepress/theme'

import { library } from '@fortawesome/fontawesome-svg-core'
import { fas } from '@fortawesome/free-solid-svg-icons'
import {ElementPlusContainer} from '@vitepress-demo-preview/component'
import VElement from '@yichu0131/z-element'

import '@vitepress-demo-preview/component/dist/style.css'
import '@yichu0131/z-element/dist/index.css'
import './custom.css'

library.add(fas)

export default {
  ...DefaultTheme,
  enhanceApp({ app }) {
    app.component('demo-preview', ElementPlusContainer).use(VElement)
  }
}
